import request from '/@/utils/request';

//未绑定数据
export async function queryWarnBind(params?: object) {
	return await request({
		url: '/earlywarning/get/warn/unbound',
		method: 'post',
		data: params,
	});
}
//未及时入库
export async function queryNoIn(params?: object) {
	return await request({
		url: '/earlywarning/get/warn/overtimeStock',
		method: 'post',
		data: params,
	});
}
//未及时回库
export async function queryNoReturn(params?: object) {
	return await request({
		url: '/earlywarning/get/warn/overtimeRevert',
		method: 'post',
		data: params,
	});
}
//异常出库数据
export async function queryWarnCheckOut(params?: object) {
	return await request({
		url: '/earlywarning/get/warn/overtimeRevert',
		method: 'post',
		data: params,
	});
}
//环境异常
export async function queryEnvironment(params?: object) {
	return await request({
		url: '/earlywarning/get/warn/environment',
		method: 'post',
		data: params,
	});
}
//保存超期
export async function queryOvertimeSave(params?: object) {
	return await request({
		url: '/earlywarning/get/warn/overtimeSave',
		method: 'post',
		data: params,
	});
}
//保存超期
export async function queryStockQuantity(params?: object) {
	return await request({
		url: '/earlywarning/get/warn/stockQuantity',
		method: 'post',
		data: params,
	});
}

//出库异常
export async function queryWarnStock(params?: object) {
	return await request({
		url: '/earlywarning/get/warn/stock',
		method: 'post',
		data: params,
	});
}
//异常消息分页
export async function queryNotification(params?: object) {
	return await request({
		url: '/earlywarning/get/pager/notification',
		method: 'post',
		data: params,
	});
}
//异常消息分页
export async function deleteNotificationByIds(params?: object) {
	return await request({
		url: '/earlywarning/deleteNotificationByIds',
		method: 'post',
		data: params,
	});
}